package kr.hkit.powerjava.chapter10;

import java.util.Scanner;

class Employee{
	public static String getName;
	public static String getAddres;
	public static String setName;
	public static String setAddres;
	
	private String name;
	private String addres;
	private int pay;
	private int phone;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddres() {
		return addres;
	}
	public void setAddres(String addres) {
		this.addres = addres;
	}
	public int getPay() {
		return pay;
	}
	public void setPay(int pay) {
		this.pay = pay;
	}
	public int getPhone() {
		return phone;
	}
	public void setPhone(int phone) {
		this.phone = phone;
	}
	
}

class EmployeeTest {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int gap = 3;
		
		Employee[] employees = new Employee[gap];
		
		for(int i = 0; i < gap; i++){
			employees[i] = new Employee();
			
			System.out.println("이름을 입력하세요");
			employees[i].setName(sc.next());
			System.out.println("주소를 입력하세요");
			employees[i].setAddres(sc.next());
			System.out.println("연봉을 입력하세요");
			employees[i].setPay(sc.nextInt());
			System.out.println("전화번호를 입력하세요");
			employees[i].setPhone(sc.nextInt());
			System.out.println();
		}
		for(int i = 0; i < employees.length; i++){
			System.out.println(employees[i].getName());
			System.out.println(employees[i].getAddres());
			System.out.println(employees[i].getPay());
			System.out.println(employees[i].getPhone());
		}
	}
}
